package com.hhq.demo.utils;

/**
 * @author HHQ
 * @date 2021年12月14日
 * 用户统一返回信息的工具类
 */
public class Message {

    /**
     * 状态码 0：成功  -1：失败
     */
    private Integer status;
    /**
     * 返回的消息内容
     */
    private String result;
    /**
     * 返回的数据
     */
    private Object data;

    public Message(Integer status, String result) {
        this.status = status;
        this.result = result;
    }

    public Message(Object data) {
        this.data = data;
    }

    public Message() {
    }

    public Message(Integer status) {
        this.status = status;
    }

    public Message(Integer status, String result, Object data) {
        this.status = status;
        this.result = result;
        this.data = data;
    }

    public Message(Integer status, Object data) {
        this.status = status;
        this.data = data;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getResult() {
        return result;
    }

    public void setResult(String result) {
        this.result = result;
    }

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }
}
